<div class='fui-page  fui-page-current'>
    <div class="fui-header">
	<div class="fui-header-left">
	    <a class="back" ng-click="goback()"></a>
	</div>
	<div class="title">订单核销</div> 
	<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content'>
	<div class='fui-cell-group'>
		<div class="fui-cell">
				<div class="fui-cell-info">
					<div class='title'>
						<span ng-show="pagedata.order.sendtype==1" class="label label-success">配送上门</span> 
						<span ng-show="pagedata.order.sendtype!=1" class="label label-danger">自提点自助</span>
					</div>
				</div>
				<div class='fui-cell-remark noremark'>
					<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{pagedata.order.statustitle}}</span>
				</div>
		</div>
		<div class="fui-cell">
				<div class="fui-cell-text">
					<div class="gray">订单号: {{pagedata.order.ordersn}}</div>
					<div class="gray">{{pagedata.order.sendtype==2?'自提':'配送'}}时间：{{pagedata.order.selfinfo.selftime}}</div>
					<div ng-if="pagedata.order.times.length>0" class="fui-cellone" style="padding:0.2rem 0 0">
							<div class="fui-cellone-info">
								<div class="fui-icon-group noborder col-3" style="padding:0 0.15rem">
									<div class="fui-icon-col" ng-repeat="v in pagedata.order.times" style="margin:0">
										<label class="jyui_cell_col">
											<div class="btn btn-gray" style="font-size: 0.6rem;background:#f2f2f2;margin: 0.1rem;line-height:2">{{v}}</div>
										</label>
									</div>
								</div>
							</div>
					</div>
					<div style="line-height:1.4;color:#999;font-size:0.65rem"><i class="icon icon-wo1"></i> 联系人： <span class="text-danger">{{pagedata.order.address.realname || pagedata.order.address.name}}  </span> 联系电话： <a href="tel:{{pagedata.order.address.mobile}}" class="text-danger">{{pagedata.order.address.mobile}}</a></div>
				</div>
		</div>
	</div>
	<div class="fui-list-group">  
			<div class="fui-list" ng-repeat="g in pagedata.order_goods">
				<div class="fui-list-media">
				<img ng-src="{{tomedia(g.image)}}" class="round">
				</div>
				<div class="fui-list-inner">
					<div class="text goodstitle">{{g.title}} <i ng-if="g.selespename" class="fui-tag fui-tag-red">{{g.selespename}}</i></div> 
					<div ng-if="!empty(g.optionid)" class='subtitle'>{{g.optiontitle}}</div>
				</div>
				<div class='fui-list-angle'>
				x{{g.total}}
				</div>
			</div>
	</div>
    </div>
    <div ng-if="pagedata.order.status!=3" class="fui-footer postbtn" href="javascript:;" ng-click="post(pagedata.post,'post')">
	    <i class="icon jinyunicon icon-check"></i> 
	    <span>确认核销</span>
    </div>
	<div ng-if="pagedata.order.status==3" class="fui-footer c" style="line-height: 2.5rem;">
	    <span>该订单已核销</span>
    </div>
</div>